//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.rjxy.demo.server.impl;

import com.rjxy.demo.mapper.SkillInfoMapper;
import com.rjxy.demo.pojo.SkillInfo;
import com.rjxy.demo.server.SkillInfoServer;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SkillInfoServerImpl implements SkillInfoServer {
    @Autowired
    private SkillInfoMapper skillInfoMapper;

    public SkillInfoServerImpl() {
    }

    public List<SkillInfo> getAll() {
        return this.skillInfoMapper.selectAll();
    }

    public SkillInfo getBySid(Integer sid) {
        return this.skillInfoMapper.selectBySid(sid);
    }

    public int saveSkill(SkillInfo skillInfo) {
        return this.skillInfoMapper.insertSkill(skillInfo);
    }

    public int updateSkill(SkillInfo skillInfo) {
        return this.skillInfoMapper.updateSkill(skillInfo);
    }

    public int removeSkill(Integer sid) {
        return this.skillInfoMapper.deleteSkill(sid);
    }
}
